<#include "/include/parameters.ftl">
<#if noCopyright!="true">
<#include "/include/copyright-xml.ftl">
</#if>
<!DOCTYPE html>
<HTML xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<HEAD>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />

<TITLE>index</TITLE>

<div th:include="fragment/header :: jscss"></div>

</HEAD>

<BODY>

<DIV class="navbar navbar-default" id="navbar" th:include="fragment/topNavbar :: top">
</DIV><!-- /.navbar -->

<DIV class="main-container" id="main-container">

    <script type="text/javascript">
        try{ace.settings.check('main-container' , 'fixed')}catch(e){}
    </script>

    <DIV class="main-container-inner">

        <a class="menu-toggler" id="menu-toggler" href="#">
            <span class="menu-text"></span>
        </a>

        <DIV class="sidebar" id="sidebar">

            <script type="text/javascript">
                try{ace.settings.check('sidebar' , 'fixed')}catch(e){}
            </script>

            <div class="sidebar-shortcuts" id="sidebar-shortcuts">
                <div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
                    <button class="btn btn-success"><i class="icon-signal"></i></button>
                    <button class="btn btn-info"><i class="icon-pencil"></i></button>
                    <button class="btn btn-warning"><i class="icon-group"></i></button>
                    <button class="btn btn-danger"><i class="icon-cogs"></i></button>
                </div>

                <div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
                    <span class="btn btn-success"></span>
                    <span class="btn btn-info"></span>
                    <span class="btn btn-warning"></span>
                    <span class="btn btn-danger"></span>
                </div>
            </div><!-- #sidebar-shortcuts -->

            <ul class="nav nav-list">

                <li>
                    <a th:href="@{/}"><i class="icon-home green"></i><span class="menu-text"> 首页 </span></a>
                </li>

                <li>
                    <a href="#" class="dropdown-toggle"><i class="icon-list"></i><span class="menu-text"> 业务对象管理 </span><b class="arrow icon-angle-down"></b></a>
                    <ul class="submenu">
            <#list doc.root.table as table2><#assign className2=table2.@objctName?trim ><#assign classNameLower2=className2?lower_case >
                <#if className2!="Myuser" && className2!="Role" && className2!="Permission" && className2!="Syslog" && className2!="Sysdict" && className2!="Department" && className2!="Area" && className2!="Uploadfile">
                        <li>
                            <a th:href="@{/${classNameLower2}/list}">
                                <i class="icon-double-angle-right"></i><i class="icon-list blue"></i> ${className2}列表
                            </a>
                        </li>
                </#if>
            </#list>
                    </ul>
                </li>

    <#assign className="" >
    <#list doc.root.table as table2><#assign className2=table2.@objctName?trim ><#assign classNameLower2=className2?lower_case >
        <#if className2=="Myuser" || className2=="Role" || className2=="Permission" || className2=="Syslog" || className2=="Sysdict" || className2=="Department" || className2=="Area">
            <#if className2==className>
                <li sec:authorize="hasAnyRole('ROLE_Admin','ROLE_ObjAdmin','ROLE_${className2}Admin')"  class="active">
            <#else>
                <li sec:authorize="hasAnyRole('ROLE_Admin','ROLE_ObjAdmin','ROLE_${className2}Admin')">
            </#if>
                    <a th:href="@{/${classNameLower2}/list}">
                        <i class="icon-book blue"></i><span class="menu-text">${className2}管理</span>
                    </a>
                </li>
        </#if>
    </#list>
            <#if dataBaseName!="h2">
                <li sec:authorize="hasRole('ROLE_Admin')">
                    <a th:href="@{/druid}" target="WinDruid">
                        <i class="icon-bar-chart blue"></i><span class="menu-text">数据库监控</span>
                    </a>
                </li>
            </#if>
            <#if isCasClient!="true" >
                <li>
                    <a th:href="@{/myuser/changePassword}">
                        <i class="icon-key blue"></i><span class="menu-text">修改密码</span>
                    </a>
                </li>
                <li sec:authorize="hasRole('ROLE_Admin')">
                    <a th:href="@{/myuser/resetPassword}">
                        <i class="icon-unlock blue"></i><span class="menu-text">重置密码</span>
                    </a>
                </li>
            </#if>
                <li>
                    <a th:href="@{/uploadfile/list}" target="WinUpload">
                        <i class="icon-upload blue"></i><span class="menu-text">文件上传</span>
                    </a>
                </li>
                <li>
                    <a th:href="@{/logout}">
                        <i class="icon-off red"></i><span class="menu-text">退出</span>
                    </a>
                </li>

            </ul><!-- /.nav-list -->

            <div class="sidebar-collapse" id="sidebar-collapse">
                <i class="icon-double-angle-left red" data-icon1="icon-double-angle-left red" data-icon2="icon-double-angle-right red"></i>
            </div>

            <script type="text/javascript">
                try{ace.settings.check('sidebar' , 'collapsed')}catch(e){}
            </script>

        </DIV>


        <div class="main-content">

            <div class="breadcrumbs" id="breadcrumbs">
                <script type="text/javascript">
                    try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
                </script>

                <ul class="breadcrumb">
                    <li>
                        <i class="icon-home home-icon green"></i>
                        <a href="/">首页</a>
                    </li>
                    <li>index</li>
                </ul><!-- .breadcrumb -->

                <div class="nav-search" id="nav-search">
                    <form class="form-search">
                        <span class="input-icon">
                            <input type="text" placeholder="搜索..." class="nav-search-input" id="nav-search-input" autocomplete="off" />
                            <i class="icon-search nav-search-icon"></i>
                        </span>
                    </form>
                </div><!-- #nav-search -->
            </div>

            <div class="page-content">
                <div class="row">
                    <div class="col-xs-12">
                    <!-- PAGE CONTENT BEGINS -->

                        <TABLE  class="table table-bordered  table-condensed">
                            <TR>
                                <TD align="right" width="100">
                                    <font color="red"><b>测试页>>></b></font>
                                </TD>
                                <TD align="center" width="120">
                                    <A th:href="@{/area/tree}" target="areaTreeWin"><span class="menu-text">【Area-Tree】</span></A>
                                </TD>
                                <TD align="center" width="140">
                                    <A th:href="@{/department/tree}" target="deptTreeWin"><span class="menu-text">【Deptmnt-Tree】</span></A>
                                </TD>
                                <TD align="center" width="120">
                                </TD>
                                <TD align="center" width="120">
                                </TD>
                                <TD width="100">&nbsp;</TD>
                                <TD>&nbsp;</TD>
                            </TR>
                        </TABLE>

                        <UL id="myTab" class="nav nav-tabs">
                            <li class="active">
                                <a th:href="@{/}"><i class="icon-list green"></i>Index</a>
                            </li>
                        </UL>

                        <DIV id="myTabContent" class="tab-content">

                            <DIV id="tab_id01" class="tab-pane fade in active">

                                <DIV class="table-responsive" sec:authorize="isAuthenticated()">
                                    <TABLE class="table table-bordered table-hover">
                                    <TBODY>
                                        <TR>
                                            <TD>
                                                用户已登录！
                                            </TD>
                                        </TR>
                                        <TR>
                                            <TD>
                                                登录名：<span sec:authentication="name"></span>
                                            </TD>
                                        </TR>
                                        <TR>
                                            <TD>
                                                <font color="red">principal.username=：</font><span sec:authentication="principal.username"></span>
                                            </TD>
                                        </TR>
                                        <TR>
                                            <TD>
                                                <font color="red">principal=：</font><span sec:authentication="principal"></span>
                                            </TD>
                                        </TR>
                                        <TR>
                                            <TD>
                                                <font color="red">principal.authorities=：</font><span sec:authentication="principal.authorities"></span>
                                            </TD>
                                        </TR>
                                        <TR sec:authorize="hasRole('ROLE_Admin')">
                                            <TD>
                                                具有角色：ROLE_Admin
                                            </TD>
                                        </TR>
                                        <TR sec:authorize="hasRole('ROLE_Member')">
                                            <TD>
                                                具有角色：ROLE_Member
                                            </TD>
                                        </TR>
                                        <TR sec:authorize="hasRole('ROLE_ObjShow')">
                                            <TD>
                                                具有角色：ROLE_ObjShow
                                            </TD>
                                        </TR>
                                        <TR sec:authorize="hasRole('ROLE_ObjAdmin')">
                                            <TD>
                                                具有角色：ROLE_ObjAdmin
                                            </TD>
                                        </TR>
                                    <#list doc.root.table as table2><#assign className2=table2.@objctName?trim ><#assign classNameLower2=className2?lower_case >
                                        <TR sec:authorize="hasRole('ROLE_${className2}Show')">
                                            <TD>
                                                具有角色：ROLE_${className2}Show
                                            </TD>
                                        </TR>
                                        <TR sec:authorize="hasRole('ROLE_${className2}Admin')">
                                            <TD>
                                                具有角色：ROLE_${className2}Admin
                                            </TD>
                                        </TR>
                                    </#list>
                                    </TBODY>
                                    </TABLE>

                                </DIV><!-- /.table-responsive -->

                            </DIV><!-- /.tab-pane -->
                            
                        </DIV><!-- /.tab-content -->

                    <!-- PAGE CONTENT ENDS -->
                    </div><!-- /.col-xs-12 -->

                    <div class="col-xs-1"></div>
                    <div class="col-xs-2">
                        <ul>
                            <li><i class="icon-glass"></i> icon-glass</li>
                            <li><i class="icon-music"></i> icon-music</li>
                            <li><i class="icon-search"></i> icon-search</li>
                            <li><i class="icon-envelope"></i> icon-envelope</li>
                            <li><i class="icon-heart"></i> icon-heart</li>
                            <li><i class="icon-star"></i> icon-star</li>
                            <li><i class="icon-star-empty"></i> icon-star-empty</li>
                            <li><i class="icon-user"></i> icon-user</li>
                            <li><i class="icon-film"></i> icon-film</li>
                            <li><i class="icon-th-large"></i> icon-th-large</li>
                            <li><i class="icon-th"></i> icon-th</li>
                            <li><i class="icon-th-list"></i> icon-th-list</li>
                            <li><i class="icon-ok"></i> icon-ok</li>
                            <li><i class="icon-remove"></i> icon-remove</li>
                            <li><i class="icon-zoom-in"></i> icon-zoom-in</li>
                            <li><i class="icon-zoom-out"></i> icon-zoom-out</li>
                            <li><i class="icon-off"></i> icon-off</li>
                            <li><i class="icon-signal"></i> icon-signal</li>
                            <li><i class="icon-cog"></i> icon-cog</li>
                            <li><i class="icon-trash"></i> icon-trash</li>
                            <li><i class="icon-home"></i> icon-home</li>
                            <li><i class="icon-file"></i> icon-file</li>
                            <li><i class="icon-time"></i> icon-time</li>
                            <li><i class="icon-road"></i> icon-road</li>
                            <li><i class="icon-download-alt"></i> icon-download-alt</li>
                            <li><i class="icon-download"></i> icon-download</li>
                            <li><i class="icon-upload"></i> icon-upload</li>
                            <li><i class="icon-inbox"></i> icon-inbox</li>
                        </ul>
                    </div>

                    <div class="col-xs-2">
                        <ul>
                            <li><i class="icon-play-circle"></i> icon-play-circle</li>
                            <li><i class="icon-repeat"></i> icon-repeat</li>
                            <li><i class="icon-refresh"></i> icon-refresh</li>
                            <li><i class="icon-list-alt"></i> icon-list-alt</li>
                            <li><i class="icon-lock"></i> icon-lock</li>
                            <li><i class="icon-flag"></i> icon-flag</li>
                            <li><i class="icon-headphones"></i> icon-headphones</li>
                            <li><i class="icon-volume-off"></i> icon-volume-off</li>
                            <li><i class="icon-volume-down"></i> icon-volume-down</li>
                            <li><i class="icon-volume-up"></i> icon-volume-up</li>
                            <li><i class="icon-qrcode"></i> icon-qrcode</li>
                            <li><i class="icon-barcode"></i> icon-barcode</li>
                            <li><i class="icon-tag"></i> icon-tag</li>
                            <li><i class="icon-tags"></i> icon-tags</li>
                            <li><i class="icon-book"></i> icon-book</li>
                            <li><i class="icon-bookmark"></i> icon-bookmark</li>
                            <li><i class="icon-print"></i> icon-print</li>
                            <li><i class="icon-camera"></i> icon-camera</li>
                            <li><i class="icon-font"></i> icon-font</li>
                            <li><i class="icon-bold"></i> icon-bold</li>
                            <li><i class="icon-italic"></i> icon-italic</li>
                            <li><i class="icon-text-height"></i> icon-text-height</li>
                            <li><i class="icon-text-width"></i> icon-text-width</li>
                            <li><i class="icon-align-left"></i> icon-align-left</li>
                            <li><i class="icon-align-center"></i> icon-align-center</li>
                            <li><i class="icon-align-right"></i> icon-align-right</li>
                            <li><i class="icon-align-justify"></i> icon-align-justify</li>
                            <li><i class="icon-list"></i> icon-list</li>
                        </ul>
                    </div>

                    <div class="col-xs-2">
                        <ul>
                            <li><i class="icon-indent-left"></i> icon-indent-left</li>
                            <li><i class="icon-indent-right"></i> icon-indent-right</li>
                            <li><i class="icon-facetime-video"></i> icon-facetime-video</li>
                            <li><i class="icon-picture"></i> icon-picture</li>
                            <li><i class="icon-pencil"></i> icon-pencil</li>
                            <li><i class="icon-map-marker"></i> icon-map-marker</li>
                            <li><i class="icon-adjust"></i> icon-adjust</li>
                            <li><i class="icon-tint"></i> icon-tint</li>
                            <li><i class="icon-edit"></i> icon-edit</li>
                            <li><i class="icon-share"></i> icon-share</li>
                            <li><i class="icon-check"></i> icon-check</li>
                            <li><i class="icon-move"></i> icon-move</li>
                            <li><i class="icon-step-backward"></i> icon-step-backward</li>
                            <li><i class="icon-fast-backward"></i> icon-fast-backward</li>
                            <li><i class="icon-backward"></i> icon-backward</li>
                            <li><i class="icon-play"></i> icon-play</li>
                            <li><i class="icon-pause"></i> icon-pause</li>
                            <li><i class="icon-stop"></i> icon-stop</li>
                            <li><i class="icon-forward"></i> icon-forward</li>
                            <li><i class="icon-fast-forward"></i> icon-fast-forward</li>
                            <li><i class="icon-step-forward"></i> icon-step-forward</li>
                            <li><i class="icon-eject"></i> icon-eject</li>
                            <li><i class="icon-chevron-left"></i> icon-chevron-left</li>
                            <li><i class="icon-chevron-right"></i> icon-chevron-right</li>
                            <li><i class="icon-plus-sign"></i> icon-plus-sign</li>
                            <li><i class="icon-minus-sign"></i> icon-minus-sign</li>
                            <li><i class="icon-remove-sign"></i> icon-remove-sign</li>
                            <li><i class="icon-ok-sign"></i> icon-ok-sign</li>
                        </ul>
                    </div>

                    <div class="col-xs-2">
                        <ul>
                            <li><i class="icon-question-sign"></i> icon-question-sign</li>
                            <li><i class="icon-info-sign"></i> icon-info-sign</li>
                            <li><i class="icon-screenshot"></i> icon-screenshot</li>
                            <li><i class="icon-remove-circle"></i> icon-remove-circle</li>
                            <li><i class="icon-ok-circle"></i> icon-ok-circle</li>
                            <li><i class="icon-ban-circle"></i> icon-ban-circle</li>
                            <li><i class="icon-arrow-left"></i> icon-arrow-left</li>
                            <li><i class="icon-arrow-right"></i> icon-arrow-right</li>
                            <li><i class="icon-arrow-up"></i> icon-arrow-up</li>
                            <li><i class="icon-arrow-down"></i> icon-arrow-down</li>
                            <li><i class="icon-share-alt"></i> icon-share-alt</li>
                            <li><i class="icon-resize-full"></i> icon-resize-full</li>
                            <li><i class="icon-resize-small"></i> icon-resize-small</li>
                            <li><i class="icon-plus"></i> icon-plus</li>
                            <li><i class="icon-minus"></i> icon-minus</li>
                            <li><i class="icon-asterisk"></i> icon-asterisk</li>
                            <li><i class="icon-exclamation-sign"></i> icon-exclamation-sign</li>
                            <li><i class="icon-gift"></i> icon-gift</li>
                            <li><i class="icon-leaf"></i> icon-leaf</li>
                            <li><i class="icon-fire"></i> icon-fire</li>
                            <li><i class="icon-eye-open"></i> icon-eye-open</li>
                            <li><i class="icon-eye-close"></i> icon-eye-close</li>
                            <li><i class="icon-warning-sign"></i> icon-warning-sign</li>
                            <li><i class="icon-plane"></i> icon-plane</li>
                            <li><i class="icon-calendar"></i> icon-calendar</li>
                            <li><i class="icon-random"></i> icon-random</li>
                            <li><i class="icon-comment"></i> icon-comment</li>
                            <li><i class="icon-magnet"></i> icon-magnet</li>
                        </ul>
                    </div>

                    <div class="col-xs-3">
                        <ul>
                            <li><i class="icon-chevron-up"></i> icon-chevron-up</li>
                            <li><i class="icon-chevron-down"></i> icon-chevron-down</li>
                            <li><i class="icon-retweet"></i> icon-retweet</li>
                            <li><i class="icon-shopping-cart"></i> icon-shopping-cart</li>
                            <li><i class="icon-folder-close"></i> icon-folder-close</li>
                            <li><i class="icon-folder-open"></i> icon-folder-open</li>
                            <li><i class="icon-resize-vertical"></i> icon-resize-vertical</li>
                            <li><i class="icon-resize-horizontal"></i> icon-resize-horizontal</li>
                            <li><i class="icon-hdd"></i> icon-hdd</li>
                            <li><i class="icon-bullhorn"></i> icon-bullhorn</li>
                            <li><i class="icon-bell"></i> icon-bell</li>
                            <li><i class="icon-certificate"></i> icon-certificate</li>
                            <li><i class="icon-thumbs-up"></i> icon-thumbs-up</li>
                            <li><i class="icon-thumbs-down"></i> icon-thumbs-down</li>
                            <li><i class="icon-hand-right"></i> icon-hand-right</li>
                            <li><i class="icon-hand-left"></i> icon-hand-left</li>
                            <li><i class="icon-hand-up"></i> icon-hand-up</li>
                            <li><i class="icon-hand-down"></i> icon-hand-down</li>
                            <li><i class="icon-circle-arrow-right"></i> icon-circle-arrow-right</li>
                            <li><i class="icon-circle-arrow-left"></i> icon-circle-arrow-left</li>
                            <li><i class="icon-circle-arrow-up"></i> icon-circle-arrow-up</li>
                            <li><i class="icon-circle-arrow-down"></i> icon-circle-arrow-down</li>
                            <li><i class="icon-globe"></i> icon-globe</li>
                            <li><i class="icon-wrench"></i> icon-wrench</li>
                            <li><i class="icon-tasks"></i> icon-tasks</li>
                            <li><i class="icon-filter"></i> icon-filter</li>
                            <li><i class="icon-briefcase"></i> icon-briefcase</li>
                            <li><i class="icon-fullscreen"></i> icon-fullscreen</li>
                        </ul>
                    </div>

                </div><!-- /.row -->

            </div><!-- /.page-content -->

        </div><!-- /.main-content -->

    </DIV><!-- /.main-container-inner -->

    <a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
        <i class="icon-double-angle-up icon-only bigger-110"></i>
    </a>

</DIV><!-- /.main-container -->

<div th:include="fragment/footer :: js"></div>

</BODY>
</HTML>
